﻿<%@ Page Language="C#" MasterPageFile="~/Custom/CustomPage.Master" AutoEventWireup="true" CodeBehind="UpdatePassword.aspx.cs" Inherits="WebUI.Custom.UpdatePassword" %>

<asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
    <table>
        <tr>
            <td style="width: 70px; height: 25px;">
                用户名：</td>
            <td style="width: 117px; height: 25px;">
                <asp:TextBox ID="txtLoginName" runat="server" ForeColor="#404040" Width="117px"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 70px">
                旧密码：</td>
            <td style="width: 117px">
                <asp:TextBox ID="txtLoginPassword" runat="server" TextMode="Password" ForeColor="#404040" Width="118px"></asp:TextBox>
                </td>
            <td style="text-align:left;"> <asp:RequiredFieldValidator ID="RFValidatorLoginPassword" runat="server" ControlToValidate="txtLoginPassword"
                    ErrorMessage="*">请输入旧密码</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator   ID="REValidatorLoginPassword"   runat="server"   ControlToValidate="txtLoginPassword"   
                          ErrorMessage="*"   ValidationExpression="^[a-zA-Z]\w{5,17}$">请输入6-18位密码</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 70px">
                新密码：</td>
            <td style="width: 117px">
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" ForeColor="#404040" Width="118px"></asp:TextBox>
                </td>
              <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorPassword" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage="*">请输入新密码</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator   ID="REValidatorPassword"   runat="server"   ControlToValidate="txtPassword"   
                          ErrorMessage="*"   ValidationExpression="^[a-zA-Z]\w{5,17}$">请输入6-18位密码</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 70px">
                确认密码：</td>
            <td style="width: 117px">
                <asp:TextBox ID="txtRePassword" runat="server" TextMode="Password" ForeColor="#404040" Width="118px"></asp:TextBox>
                </td>
                   <td style="text-align:left;"><asp:CompareValidator ID="CValidatorRePassword" runat="server" ControlToCompare="txtPassword"
                    ControlToValidate="txtRePassword" ErrorMessage="*">密码不一致</asp:CompareValidator></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" Text="提交" ForeColor="#404040" /></td>
        </tr>
    </table>
</asp:Content>